package com.journey.org.ui.home.scan

import android.app.Application
import androidx.databinding.ObservableField
import com.journey.org.app.TitleViewModel
import com.mvvmhabit.org.binding.command.BindingAction
import com.mvvmhabit.org.binding.command.BindingCommand

class ScanViewModel(application: Application) : TitleViewModel(application) {

    override fun onCreate() {
        super.onCreate()
        onToolbarTitle.set("扫一扫")
    }

    val onScanResultField = ObservableField<String>()

    val onSubmitCommand = BindingCommand<Any>(object : BindingAction {
        override fun call() {
            finish()
        }
    })

}